<template>
  <div></div>
</template>

<script>
export default {
  name: "auto-login",
  components: {},
  data() {
    return {
      loginForm: {
        username: "admin",
        password: "admin234",
        rememberMe: false,
        code: "",
        uuid: "",
      },
      redirect: undefined,
    };
  },
  created() {
    this.$store.dispatch("Login", this.loginForm).then(() => {
      sessionStorage.setItem('lastClickTime', new Date().getTime())
      this.$router.push({ path: this.redirect || "/" });
    }).catch(() => {
    });
  },
};
</script>

<style scoped lang="scss"></style>
